package dfbz.homework1;

public class Test05 {
    public static void main(String[] args) {
        showColor("red");
    }
    public static void showColor(String color){
        if ("red".equals(color)) {
            System.out.println("red是红色");

        } else if ("blue".equals(color)) {
            System.out.println("blue是蓝色");

        } else if ("green".equals(color)) {
            System.out.println("green是绿色");

        } else {
            System.out.println("颜色未知");
        }
    }
}
